<?php
session_start();
?>
<?php
require "lib/db.php";
require "lib/category-function.php";

if(isset($_GET['categoryid'])){
	$categoryID = $_GET['categoryid'];
	settype($categoryID,"int");
	deleteCategory($categoryID);
	header("location:list-category.php");
}
?>